<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img style="height:200px;" src="http://222.66.77.226:50000/cms-picture/user_material/163/181/3/173/pic/2019-03-07/34071560-0803-4f76-b8f8-8c5dba738211.jpg" />
</body>

<script type="text/javascript">
	var imgs  = document.getElementsByTagName("img");
	
	for(img of imgs){
		
		img.style.height = "100";
		
	}

	let str = "aabbbbcccc";	
	console.log(replaceAll(str,"c","d"));
	
	function replaceAll(str,before,after){
		return str.replace(eval('/'+before+'/g'),after); 		
	}
	
</script>

</html>
